{%- comment -%}
TODO: 移至下版本 2038
{%- endcomment -%}

{%- assign last = 'first' -%}
{%- assign posts = include.posts | reverse -%}
{%- for cur in posts -%}
{%- assign trigger = cur.date | date: include.first -%}
{%- if trigger == include.range and cur.hidden != true -%}
{%- assign now = cur.date | date: include.second -%}
{%- if now != last -%}
{%- if last == 'first' -%}
<dl class="ml-card-list">
{%- else -%}
		</ul>
	</dd>
{%- endif -%}
{%- assign last = now -%}
	<dt>{{ last }}</dt>
	<dd>
		<ul>
{%- endif -%}
			<li {% if cur.lang %} lang="{{ cur.lang }}" {%- endif -%}>
				<a href="{{ cur.url | relative_url }}" class="ml-card-anchor">
					{%- if cur.image -%}
					<img src="{{ cur.image | relative_url }}" />
					{%- endif -%}
					<div class="ml-card-text">
						<h2>{{ cur.title }}</h2>
						{%- if site.show_excerpts -%}
						{{ cur.excerpt }}
						{%- endif -%}
					</div>
				</a>
			</li>
{%- endif -%}
{%- endfor -%}
		</ul>
	</dd>
</dl>


